
{isPlainObject} = require('lodash')
module.exports = (middleware,dict)->
    if isPlainObject(middleware)
        dict = middleware
        middleware = []
    middleware = require('./_passport').concat(middleware)
    require('fckoa/router')(middleware, dict)
